package com.zqz.admin.server.service;

import com.zqz.admin.server.dto.UserDto;
import com.zqz.admin.server.model.User;

public interface UserService {

    User saveUser(UserDto userDto);

    User updateUser(UserDto userDto);

    //密码编码器 主要是为了把加密密码
    String passwordEncoder(String credentials, String salt);

    User getUser(String username);

    void changePassword(String username, String oldPassword, String newPassword);


}
